import {Component, EventEmitter, Input, Output} from '@angular/core';
import {NgIf} from "@angular/common";

@Component({
  selector: 'app-product-alert',
  standalone: true,
  imports: [
    NgIf
  ],
  templateUrl: './product-alert.component.html',
  styleUrl: './product-alert.component.css'
})
export class ProductAlertComponent {

  @Input() product: Product|undefined;
  @Output() notify = new EventEmitter();
  constructor() { }
  Notify(product: Product) {
    this.notify.emit(product);
  }

}


